package com.tabjin.rfidsocket.authority.shiro.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.HashSet;
import java.util.Set;

/**
 * @author tabjin
 * create at 2020/12/15 15:10
 * @program rfid_socket
 * @description
 */
@Getter
@Setter
@ToString
@Table(name = "user")
public class User {
    @Id
    @Column(name = "id")
    private Integer id;
    private String name;
    private String password;
    private Set<Role> roles = new HashSet<>();
}
